package com.example.myweb.Dto;

import lombok.Data;
import java.time.LocalDateTime;
import java.util.List;

@Data
public class CommentDTO {
//    private Long commentId;
//    private AuthorInfoDTO user;
//    private String commentText;
//    private int likeCount;
//    private LocalDateTime commentTime;
    private Long commentId;
    private AuthorInfoDTO user; // 评论作者
    private String commentText;
    private LocalDateTime commentTime;
    private int likeCount;
    private boolean isLiked;


    // 为二级评论预留字段
    private List<CommentDTO> replies;
}